import request from '@/utils/request.js'

// 条件分页查询具体权限信息
export const permissionPageService = (params) => {
  return request.get('/permissions/page', { params })
}

// 新增具体权限
export const permissionAddService = (data) => {
  return request.post('/permissions', data)
}

// 修改具体权限
export const permissionUpdateService = (data) => {
  return request.put('/permissions', data)
}

// 查询所有具体权限
export const permissionSelectAllService = () => {
  return request.get('/permissions/selectAll')
}

// 删除具体权限
export const permissionDeleteMultipleService = (data) => {
  return request.delete(`/permissions/${data}`)
}
